package com.park.service.impl.news;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.park.client.model.news.NewsImgModel;
import com.park.client.service.news.NewsImgService;
import com.park.dao.news.NewsImgMapper;
import com.park.service.impl.base.BaseServiceImpl;

@Service("newsImgService")
public class NewsImgServiceImpl extends BaseServiceImpl<NewsImgModel> implements NewsImgService {
	
	@Autowired
	private NewsImgMapper newsImMapper;

	@Override
	public boolean insert(NewsImgModel record) {
		return newsImMapper.insert(record) == 1;
	}
	@Override
	public boolean deleteByPrimaryKey(Long id) {
		return newsImMapper.deleteByPrimaryKey(id)==1;
	}
	@Override
	public boolean insertSelective(NewsImgModel record) {
		return newsImMapper.insertSelective(record)==1;
	}
	@Override
	public NewsImgModel selectByPrimaryKey(Long id) {
		return newsImMapper.selectByPrimaryKey(id);
	}
	@Override
	public boolean updateByPrimaryKeySelective(NewsImgModel record) {
		return newsImMapper.updateByPrimaryKeySelective(record)==1;
	}
	

}
